package day0214;

public class File11 {
    public static void main(String[] args) {
        int row=6;
        //7行
        for (int i = 0; i <= row; i++) {
            //打印每一行的空格
            for (int j = 0; j < row-i; j++) {
                System.out.print(" ");
            }

            //表示本行的所有元素
            for (int j = 0; j < 2*i+1 ; j++) {
                if(j==0 || j== 2*i){
                    System.out.print("1");
                }else{
                    if(j%2 != 0){
                        System.out.print(" ");
                    }else {
                        System.out.print("*");
                    }
                }
            }

            System.out.println();

        }
    }
}
